package cn.itsource.order.controller;


import cn.itsource.basic.util.AjaxResult;
import cn.itsource.order.service.IUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/address")
public class UserAddressController {
    @Autowired
    private IUserAddressService userAddressService;

    /**
     * 获登录用户的所有的有效地址
     */
    @GetMapping("/liist")
    public AjaxResult 获取用户地址(){

        return userAddressService.获取用户地址();
    }


}
